﻿using Coder.Beer.Robot.Api.ApplicationModel;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Coder.Beer.Robot.Api.Migrations
{
    public partial class GitToken : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<GitToken>(
                name: "GiteeToken",
                table: "UserConnecteds",
                type: "jsonb",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "Stared",
                table: "UserConnecteds",
                type: "boolean",
                nullable: false,
                defaultValue: false);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "GiteeToken",
                table: "UserConnecteds");

            migrationBuilder.DropColumn(
                name: "Stared",
                table: "UserConnecteds");
        }
    }
}
